package cn.monkey.data.repository.reactive;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.Repository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@NoRepositoryBean
public interface ReactivePagingAndSortingRepository<T, ID> extends Repository<T, ID> {
    Flux<T> findAll(Sort sort);

    Mono<Page<T>> findPage(Pageable pageable);
}
